import { useLocation } from "react-router-dom";
export default () => Object.fromEntries(new URLSearchParams(useLocation().search).entries());
